#pragma once

#include "BoundingSphere.h"


struct Brick;

class Unit
{
public:
	void reset(Brick & brick);
	void update(float dt);

	XMFLOAT3 Position;
	XMFLOAT4 Orientation;

	

	mmath::BoundingSphere getBoundingSphere() const { return mBSphere; }
	void setCurrentDestination(XMFLOAT3 dest);

private:
	void headToDest(float dt);

	Brick * mBrick;
	mmath::BoundingSphere mBSphere;

	XMFLOAT3 mCurrDest;
	bool mHeadingToDest;

	float mRotationY;
};
